package com.mygdx.game.Stage.Fight.Card;

import com.mygdx.game.Stage.Fight.*;

import java.util.ArrayList;


public class CleaveCard extends Card {
    public CleaveCard() {
        super("com/mygdx/game/Stage/Fight/Cleave.png");
    }


    @Override
    public boolean effect(Energy energy, Fighter fighterL, ArrayList<Fighter> enemies){
        if (energy.energy-this.cost<0)return false;
        energy.energy-=cost;

        for (Fighter enemy:enemies){
            enemy.hp -=8;
        }

        //      aoe代码


        return true;
    }


}